package com.vilen.basic.kit;

/**
 * Created by Administrator on 2016/2/17.
 */
public class BasicKit {
    public static boolean isEmpty (Object object) {
        if(object == null) {
            return true;
        }
        if(object instanceof String) {
            if("".equals(((String)object).trim())) {
                return true;
            }
        }
        if(object instanceof Integer) {
            if((Integer)object==0) {
                return true;
            }
        }
        return false;
    }
}
